package cn.iocoder.yudao.module.erp.controller.admin.pristock.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 一级库库存新增/修改 Request VO")
@Data
public class PriStockSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "7763")
    private Long id;

    @Schema(description = "仓库编号", example = "30000")
    private String warehouseId;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30654")
    @NotEmpty(message = "产品编号不能为空")
    private String productId;

    @Schema(description = "产品单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品单位不能为空")
    private String productUnit;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品规格不能为空")
    private String productStandards;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "产品名称不能为空")
    private String productName;

    @Schema(description = "单位id", example = "5557")
    private String deptId;

    @Schema(description = "产品单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "26275")
    @NotNull(message = "产品单价不能为空")
    private BigDecimal productPrice;

    @Schema(description = "批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "批次不能为空")
    private String productBatch;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期不能为空")
    private LocalDateTime productValidityDate;

    @Schema(description = "库存数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "20294")
    @NotEmpty(message = "库存数量不能为空")
    private String count;

    @Schema(description = "产品单位编号")
    @NotNull(message = "产品单位编号不能为空")
    private Long productUnitId;

    @Schema(description = "产品单位")
    @NotEmpty(message = "产品单位不能为空")
    private String productUnitName;

    @Schema(description = "产品分类编号")
    @NotNull(message = "产品分类编号不能为空")
    private Long productCategoryId;

    @Schema(description = "产品分类名称")
    @NotEmpty(message = "产品分类名称不能为空")
    private String productCategoryName;

    @Schema(description = "产品采购价格")
    @NotNull(message = "产品采购价格不能为空")
    private BigDecimal productPurchasePrice;

    @Schema(description = "产品入库批次")
    @NotEmpty(message = "产品入库批次不能为空")
    private String inboundBatch;

}